package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.StrategyCommend;
import cn.wolfcode.luowowo.common.query.QueryObject;
import cn.wolfcode.luowowo.common.util.AjaxResult;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 推荐攻略的服务
 */
public interface IStrategyCommendService {
    /**
     * 高级查询分页
     * @param qo
     * @return
     */
    PageInfo<StrategyCommend> query(QueryObject qo);

    /**
     * 将一篇攻略设置为推荐
     * @param commend
     * @return
     */
    AjaxResult save(StrategyCommend commend);

    /**
     * 查询sequence前五的推荐攻略
     * @return
     */
    List<StrategyCommend> selectTop5();

}
